#ifndef SINGLEAPPLICATION_H
#define SINGLEAPPLICATION_H

#include <QApplication>
#include <QTranslator>
#include <QDebug>
#include <QTimer>
#include <QSharedMemory>


class SingleApplication : public QApplication
{
    Q_OBJECT
public:
    SingleApplication(int &argc, char *argv[], const QString uniqueKey);
    bool isRunning();
    virtual void exit();

public slots:
    void log();

signals:


private:
    bool _isRunning;
    QSharedMemory sharedMemory;
};


#endif // SINGLEAPPLICATION_H
